package com.xinke.module.system.model.vo.logger;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 操作日志记录 V2 版本新增/修改 Request VO")
@Data
public class OperateLogSaveReqVO {

    @Schema(description = "日志主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "29410")
    private Long logId;

    @Schema(description = "链路追踪编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "23207")
    @NotEmpty(message = "链路追踪编号不能为空")
    private String traceId;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "30912")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "用户类型不能为空")
    private Integer userType;

    @Schema(description = "操作模块类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "操作模块类型不能为空")
    private String operateType;

    @Schema(description = "操作名", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "操作名不能为空")
    private String operateName;

    @Schema(description = "操作数据模块编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "17715")
    @NotNull(message = "操作数据模块编号不能为空")
    private Long bizId;

    @Schema(description = "操作内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "操作内容不能为空")
    private String operateContent;

    @Schema(description = "操作结果", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "操作结果不能为空")
    private Integer operateSuccess;

    @Schema(description = "拓展字段", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "拓展字段不能为空")
    private String operateExtra;

    @Schema(description = "请求方法名")
    private String requestMethod;

    @Schema(description = "请求地址", example = "https://www.iocoder.cn")
    private String requestUrl;

    @Schema(description = "用户 IP")
    private String userIp;

    @Schema(description = "浏览器 UA")
    private String userAgent;

}